DrawString
Draws a string
of characters on an image.
Syntax: | imaG.DrawString string , x , y , color , font |
string | The text to draw |
x (single) | OPTIONAL - The beginning horizontal position of the starting point. (default : imaG.CurrentX) |
y (single) | OPTIONAL - The beginning vertical position of the starting point. (default : imaG.CurrentY) |
color (OLE_COLOR) | OPTIONAL - color of the text (default : imaG.ForeColor) |
font (StdFont) | OPTIONAL - font of the text (default : imaG.Font) |
If MODE PROPERTY is NOT caModeDraw then an ERROR will be thrown.
If you are using this method with a palettized image, then the color selected must be contained in the image's palette. If it is not, then the closest color found in the image's palette is used.
See also DrawCircle , DrawLine , DrawMode, DrawPoint , DrawStyle , DrawWidth